﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using System.Drawing;

namespace DotNetGPSTest
{
   interface TileProvider
   {
      // Returns tile at this position.
      TileInfo getTileAt(GPSPosition position);
      // Returns the tile at the offset index of the one centered at position.
      // xIndex=0, yIndex=1 is tile adjacent below tile at 'position'.
      // xIndex=-1, yIndex=-1 is tile top left of tile at 'position'.
      TileInfo getTileAt(GPSPosition position, int xIndex, int yIndex);
      // Returns the amount of pixels between A and B.
      // Negative x B is left of A
      // Negative y B is above A
      Point getOffset(GPSPosition positionA, GPSPosition positionB);
      //double getMetresPerPixel(GPSPosition position);
   }
}
